﻿//==================================================
// Copyright (C) 2018-2019 Fanjia
// All rights reserved
// CLR 版本: 4.0.30319.42000
// 机器名称: kangwenyi
// 文 件 名: GeoHelper
// 创建时间: 2018/3/21 11:14:09
// 创 建 人: 康文艺
//==================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Newtonsoft;
namespace FanjiaHotelPlatform.utils.Kits
{
    /// <summary>
    /// 设施分类
    /// </summary>
    public class HotelFacilityCategoryKit {
        /// <summary>
        /// 设施分类名称
        /// </summary>
        [XmlElement]
        public string Title { get; set; }
        /// <summary>
        /// 设施分类图标
        /// </summary>
        [XmlElement]
        public string Icon { get; set; }
        private List<HotelFacilityKit> _Items = new List<HotelFacilityKit>();
        /// <summary>
        /// 当前分类列表
        /// </summary>
        [XmlArrayItem("HotelFacility")]
        public List<HotelFacilityKit> Items {
            get
            {
                return _Items;
            }
            set
            {
                if (value!=null)
                    _Items = value;
            }
        }
    }
    /// <summary>
    /// 设施项目
    /// </summary>
    public class HotelFacilityKit
    {
        /// <summary>
        /// 设施名称
        /// </summary>
        [XmlAttribute]
        public string Title { get; set; }
        /// <summary>
        /// 设施图标
        /// </summary>
        [XmlAttribute]
        public string Icon { get; set; }
        /// <summary>
        /// 匹配模式
        /// </summary>
        [XmlElement]
        [Newtonsoft.Json.JsonIgnore]
        public string MatchPattern { get; set; }
        /// <summary>
        /// 是否热门设置
        /// </summary>
        [XmlAttribute]
        public bool IsHot
        {
            get;set;
        }
        
    }
}
